﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class InfoPhoneCall : DBEntityBase
    {
        public InfoPhoneCall()
            : base()
        {
        }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string PHONENBR
        {
            get;
            set;
        }
        /// <summary>
        /// 来电时间
        /// </summary>
        public string CALLTIME
        {
            get;
            set;
        }
        /// <summary>
        /// 会员ID
        /// </summary>
        public string CUSTOMERID
        {
            get;
            set;
        }
        /// <summary>
        /// 会员姓名
        /// </summary>
        public string CUSTOMERNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 会员昵称
        /// </summary>
        public string CUSTOMERNICKNAME
        {
            get;
            set;
        }
        /// <summary>
        /// 获取数据集
        /// </summary>
        /// <returns></returns>
        public static DataTable GetPhoneDataTable()
        {
            DataTable dtPhoneCall = new DataTable();
            DataColumn dcCustomID = new DataColumn(FieldName.CUSTOMERID, typeof(string));
            DataColumn dcCustomName = new DataColumn(FieldName.CUSTOMERNAME, typeof(string));
            DataColumn dcCustomNiceName = new DataColumn(FieldName.CUSTOMERNICKNAME, typeof(string));
            DataColumn dcCallTime = new DataColumn(FieldName.CALLTIME, typeof(string));
            DataColumn dcPhoneNbr = new DataColumn(FieldName.PHONENBR, typeof(string));
            return dtPhoneCall;
        }
        
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 电话号码
            /// </summary>
            public static string PHONENBR = "PHONENBR";
            /// <summary>
            /// 来电时间
            /// </summary>
            public static string CALLTIME = "CALLTIME";
            /// <summary>
            /// 会员ID
            /// </summary>
            public static string CUSTOMERID = "CUSTOMERID";
            /// <summary>
            /// 会员姓名
            /// </summary>
            public static string CUSTOMERNAME = "CUSTOMERNAME";
            /// <summary>
            /// 会员昵称
            /// </summary>
            public static string CUSTOMERNICKNAME = "CUSTOMERNICKNAME";
        }
    }
}
